<?php
/************************FoxPHP威客系统************************/
/*                                                            */
/*  FoxPHP.Com (C)2006-2016 FoxPHP Inc.                       */
/*  This is NOT a freeware, use is subject to license terms   */
/*  FoxPHP威客系统是商业软件,使用于商业用途请购买授权         */
/*  V3.0 2016.3                                               */
/*  foxphp@aliyun.com                                         */
/*  http://www.foxphp.com                                     */
/*                                                            */
/**************************************************************/

namespace Member\Controller;
use Think\Controller;
class TaskController extends IndexController {
	
    public function indexAction(){
    	if($this->usertype==1){
			$model=new \Data\Model\DataOrderModel();
			$result=$model->GetMyOrder($this->uid);
		}else{
			$model=new \Data\Model\DataModel();
			$result=$model->GetMyTask();
		}
		$this->assign('list',$result['list']);	
		$this->assign('page',$result['page']);
		$this->display();	
    }
	
	// public function showAction(){
	// 	$model=new \Member\Model\MemberTaskModel();

	// 	$this->assign('manage',$model->ShowData());
		
	// 	$this->display();	
	// }
	
}
